package org.javaboy.dlx;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DelayConsumer {
    private static final Logger logger = LoggerFactory.getLogger(DelayConsumer.class);
    @RabbitListener(queues= DelayMsgConfig.DELAY_MSG_QUEUE)
    public void receive(String msg) {
        logger.info("延时消息：{}",msg);
    }
}
